﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;

namespace WinSPen.Settings
{
    public enum PenType
    {
        Pen,
        Brush,
        Brush2,
        Pencil,
        Marker,
    }

    internal class StrokeSetting
    {
        private static StrokeSetting _instance;

        private StrokeSetting() { }

        public static StrokeSetting GetInstance()
        {
            if (_instance == null)
            {
                _instance = new StrokeSetting();
            }

            return _instance;
        }

        private PenType _currentPenType = PenType.Pen;

        /// <summary>
        /// 설정된 Pen의 모양
        /// </summary>
        public PenType CurrentPenType
        {
            get { return this._currentPenType; }
            set { this._currentPenType = value; }
        }

        private Color _penColor;

        /// <summary>
        /// 설정된 Pen의 색상
        /// </summary>
        public Color PenColor
        {
            get
            {
                if (this._penColor == null)
                {
                    this._penColor = new Color();
                }
                return this._penColor;
            }
            set
            {
                this._penColor = value;
            }
        }

        private double _weight;

        /// <summary>
        /// 설정된 Pen의 두께
        /// </summary>
        public double Weight
        {
            get { return this._weight; }
            set { this._weight = value; }
        }
    }
}
